import request from '@/utils/request'

export const getDepartment = () => {
  return request.get('/company/department')
}

export const getManagerList = () => {
  return request.get('/sys/user/simple')
}

export const addDepartment = (data) => {
  return request.post('/company/department', data)
}

export const getDepDetail = (id) => {
  return request.get(`/company/department/${id}`)
}

export const editDep = (id, data) => {
  return request.put(`/company/department/${id}`, data)
}

export const delDept = (id) => {
  return request.delete(`/company/department/${id}`)
}
